!                               0001                              Syntax:                                                                              !                               0002                                                                                                                   !                               0003                                ! comment text                                                                     !                               0004                                                                                                                   !                               0005                              Discussion:                                                                          !                               0006                                                                                                                   !                               0007                                The exclamation mark (!) is the comment character.                                 !                               0008                                                                                                                   !                               0009                              Example:                                                                             !                               0010                                                                                                                   !                               0011                                100   ! This report uses data from the Customer file                               !                               0012                                200   <INPUT> CUSTOMER                                                             !                               0013                                300   <REPORT>                                                                     !                               0014                                400   ! The following command prints the customer number                           !                               0015                                500   ! and customer name                                                          !                               0016                                600   <PRINT> CUST.NUMBER;CUST.NAME                                                !                               0017                                700   <END>                                                                        BREAK                           0001                              Syntax:                                                                              BREAK                           0002                                                                                                                   BREAK                           0003                                BREAK [ON] field[;field][,N{ewpage}]                                               BREAK                           0004                                                                                                                   BREAK                           0005                              Discussion:                                                                          BREAK                           0006                                                                                                                   BREAK                           0007                                The BREAK command separates data into logical groups (such as                      BREAK                           0008                                subtotals on a new page) according to the data values in the                       BREAK                           0009                                field(s). The break occurs, and subtotals or a new page are                        BREAK                           0010                                issued, only when the data in the field changes. Therefore, BREAK                  BREAK                           0011                                is generally used in conjunction with a <SORT> of the same field.                  BREAK                           0012                                                                                                                   BREAK                           0013                                The field that follows the BREAK command may be the name of a                      BREAK                           0014                                field in the data file you are using. It may also be an                            BREAK                           0015                                expression that is defined in the data dictionary or has been                      BREAK                           0016                                described in the report with a <DEFINE> command.                                   BREAK                           0017                                                                                                                   BREAK                           0018                                The NEWPAGE parameter is optional and allows you to produce a new                  BREAK                           0019                                page for your report whenever the value of the break field                         BREAK                           0020                                changes.                                                                           BREAK                           0021                                                                                                                   BREAK                           0022                                The BREAK, <TOTAL>, and <PRINT> statements interact with each                      BREAK                           0023                                other. The BREAK command produces subtotals when a TOTAL command                   BREAK                           0024                                is also included in the report specification. If BREAK and TOTAL                   BREAK                           0025                                are used without a PRINT statement, a summary report is produced                   BREAK                           0026                                (no detail lines are printed).                                                     BREAK                           0027                                                                                                                   BREAK                           0028                                The fields named in the BREAK statement are always printed.                        BREAK                           0029                                However, if the break fields are not also included in a PRINT                      BREAK                           0030                                command, the following takes place:                                                BREAK                           0031                                                                                                                   BREAK                           0032                                a. If the BREAK command appears before the PRINT command, the                      BREAK                           0033                                   break field is printed at the beginning of the print line                       BREAK                           0034                                   (i.e., the left-hand side of the report).                                       BREAK                           0035                                                                                                                   BREAK                           0036                                b. If the BREAK command appears after the PRINT command, the                       BREAK                           0037                                   break field is printed at the end of the print line (i.e., the                  BREAK                           0038                                   right-hand side of the report).                                                 BREAK                           0039                                                                                                                   BREAK                           0040                                It is normal to use the BREAK command on the same field or fields                  BREAK                           0041                                you use with the SORT command, or subtotals may appear on each                     BREAK                           0042                                line of the report.                                                                BREAK                           0043                                                                                                                   BREAK                           0044                                Place the BREAK command after the <REPORT> command.                                BREAK                           0045                                                                                                                   BREAK                           0046                              Example:                                                                             BREAK                           0047                                                                                                                   BREAK                           0048                                100   <INPUT> CUSTOMER                                                             BREAK                           0049                                200   <TITLE> PAST.DUE.ACCOUNTS                                                    BREAK                           0050                                300   <DEFINE> PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2                              BREAK                           0051                                400   <SELECTING> IF PAST.DUE GT 0                                                 BREAK                           0052                                500   <SORT> ON STATE;CUST.NAME                                                    BREAK                           0053                                600   <REPORT>                                                                     BREAK                           0054                                700   <USING> CUST.TO.HIST                                                         BREAK                           0055                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    BREAK                           0056                                900   BREAK ON STATE                                                               BREAK                           0057                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                BREAK                           0058                                1100  <END>                                                                        Comet 504 Reporter Features     0001                              Comet 504 Reporter Features                                                          Comet 504 Reporter Features     0002                              ===========================                                                          Comet 504 Reporter Features     0003                                                                                                                   Comet 504 Reporter Features     0004                              1.   Report execution is much faster after the initial overhead of                   Comet 504 Reporter Features     0005                                   generating and compiling the MTB program.                                       Comet 504 Reporter Features     0006                                                                                                                   Comet 504 Reporter Features     0007                              2.   All MTB functions are supported in the <DEFINE> statement.                      Comet 504 Reporter Features     0008                                                                                                                   Comet 504 Reporter Features     0009                              3.   Edit masks from #FILES are used on <PRINT> fields.                              Comet 504 Reporter Features     0010                                                                                                                   Comet 504 Reporter Features     0011                              4.   Rounding is used, if specified in #FILES.                                       Comet 504 Reporter Features     0012                                                                                                                   Comet 504 Reporter Features     0013                              5.   Hex constants in expressions are supported (e.g., "@FF@").                      Comet 504 Reporter Features     0014                                                                                                                   Comet 504 Reporter Features     0015                              6.   There is no more limit of 252 characters maximum per output                     Comet 504 Reporter Features     0016                                   record. The maximum is the declared <MARGIN>, up to 1024                        Comet 504 Reporter Features     0017                                   characters.                                                                     Comet 504 Reporter Features     0018                                                                                                                   Comet 504 Reporter Features     0019                              7.   A type 2 gateway must be configured if the <SORT> command is                    Comet 504 Reporter Features     0020                                   used (i.e., there is no more "slow sort" option).                               Comet 504 Reporter Features     0021                                                                                                                   Comet 504 Reporter Features     0022                              8.   The previous limit on the number of <SELECTING> statements is                   Comet 504 Reporter Features     0023                                   gone.                                                                           Comet 504 Reporter Features     0024                                                                                                                   Comet 504 Reporter Features     0025                              9.   The previous limit on space required for the <DEFINE>                           Comet 504 Reporter Features     0026                                   statement and expressions from #FILES is gone.                                  Comet 504 Reporter Features     0027                                                                                                                   Comet 504 Reporter Features     0028                              10.  The Reporter uses the MoreThanBasic INQUIRE statement to read                   Comet 504 Reporter Features     0029                                   data files so report execution is not interrupted for an                        Comet 504 Reporter Features     0030                                   extracted record. For technical information, please see the                     Comet 504 Reporter Features     0031                                   <INQUIRE,#HELPMT4> statement in the MTB documentation.                          Comet 504 Reporter Features     0032                                                                                                                   Comet 504 Reporter Features     0033                              11.  Blank report lines will now be printed without having to                        Comet 504 Reporter Features     0034                                   append a non-printable character (e.g., if the second line of                   Comet 504 Reporter Features     0035                                   an address is blank on mailing labels).                                         Comet 504 Reporter Features     0036                                                                                                                   Comet 504 Reporter Features     0037                              12.  Note: Report specifications may need to be modified if                          Comet 504 Reporter Features     0038                                   <SELECTING> statements are used with strings in image files                     Comet 504 Reporter Features     0039                                   because of the length byte problem.                                             Comet 504 Reporter Features     0040                                                                                                                   Comet 504 Reporter Features     0041                              13.  Like the Qantel report Generator (but unlike the old                            Comet 504 Reporter Features     0042                                   Reporter), the print lines will be dropped if a link fails.                     Comet 504 Reporter Features     0043                                   You can add a full-key link to the end of the <USING>                           Comet 504 Reporter Features     0044                                   statement(s) to force the <PRINT>.                                              Comet 504 Reporter Features     0045                                                                                                                   Comet 504 Reporter Features     0046                              14.  The Reporter automatically includes a leading minus sign on                     Comet 504 Reporter Features     0047                                   negatively valued numeric fields when writing to a SDF or                       Comet 504 Reporter Features     0048                                   delimited output file. See the <PRINTER> statement.                             Comet 504 Reporter Files        0001                              Comet 504 Reporter Files                                                             Comet 504 Reporter Files        0002                              ========================                                                             Comet 504 Reporter Files        0003                                                                                                                   Comet 504 Reporter Files        0004                                The following files are produced as a results of running a report                  Comet 504 Reporter Files        0005                                under the Comet 504 Reporter. Assume, for this example, that the                   Comet 504 Reporter Files        0006                                name of the report specification file is $TEST.                                    Comet 504 Reporter Files        0007                                                                                                                   Comet 504 Reporter Files        0008                                File     Description                                                               Comet 504 Reporter Files        0009                                =================================================================                  Comet 504 Reporter Files        0010                                                                                                                   Comet 504 Reporter Files        0011                                @TEST    MTB listing file. This file is erased if the compilation                  Comet 504 Reporter Files        0012                                         is successful. (Created by the Reporter, written to by                    Comet 504 Reporter Files        0013                                         the compiler. Created on the same directory as the report                 Comet 504 Reporter Files        0014                                         specification file.)                                                      Comet 504 Reporter Files        0015                                                                                                                   Comet 504 Reporter Files        0016                                {TEST    Cross-reference file linking lines in the spec file with                  Comet 504 Reporter Files        0017                                         lines in the generated source file. This file is erased                   Comet 504 Reporter Files        0018                                         if the compilation is successful. (Created by the                         Comet 504 Reporter Files        0019                                         Reporter, written to by the Reporter. Created on the same                 Comet 504 Reporter Files        0020                                         directory as the report specification file.)                              Comet 504 Reporter Files        0021                                                                                                                   Comet 504 Reporter Files        0022                                `TEST    Object file that actually produces the report. This file                  Comet 504 Reporter Files        0023                                         is erased if the compilation gets errors. (Created by the                 Comet 504 Reporter Files        0024                                         compiler, written to by the compiler. Created on the same                 Comet 504 Reporter Files        0025                                         directory as the report specification file.)                              Comet 504 Reporter Files        0026                                                                                                                   Comet 504 Reporter Files        0027                                ~TEST    Generated MTB source file. This file is erased unless the                 Comet 504 Reporter Files        0028                                         <SAVESOURCE> command is used. (Created by the Reporter,                   Comet 504 Reporter Files        0029                                         written to by the Reporter. Created on the same directory                 Comet 504 Reporter Files        0030                                         as the report specification file.)                                        Comet 504 Reporter Files        0031                                                                                                                   Comet 504 Reporter Files        0032                                ZSPxxyy                                                                            Comet 504 Reporter Files        0033                                Z2Pxxyy  Sort work files. These files are erased after the report                  Comet 504 Reporter Files        0034                                         finishes printing (the erase is done by the generated                     Comet 504 Reporter Files        0035                                         program). (Created by the generated program and written                   Comet 504 Reporter Files        0036                                         to by the Sort Driver, if needed.)                                        Comet 504 Reporter Files        0037                                                                                                                   Comet 504 Reporter Files        0038                                ZWPxxyy  Reporter work file. This file is erased after the report                  Comet 504 Reporter Files        0039                                         finishes printing (the erase is done by the Reporter).                    Comet 504 Reporter Files        0040                                         (Created and written to by the Reporter.)                                 Comet 504 Reporter Files        0041                                                                                                                   Comet 504 Reporter Files        0042                                where:   Pxx is the partition number, and                                          Comet 504 Reporter Files        0043                                         yy is a random 2-digit number based on TIME$                              Comet 504 Reporter Files        0044                                                                                                                   Comet 504 Reporter Files        0045                                Note: The work files are created on the <WORKDIR> directory. If                    Comet 504 Reporter Files        0046                                no work directory is specified, the work files are created on the                  Comet 504 Reporter Files        0047                                same directory as the report specification file.                                   Comet 504 version               0001                              Information about the Comet 504 version of The Reporter                              Comet 504 version               0002                              =======================================================                              Comet 504 version               0003                                                                                                                   Comet 504 version               0004                                The Reporter has been enhanced for Comet 504. The Reporter                         Comet 504 version               0005                                analyzes a report specification, generates MTB source code,                        Comet 504 version               0006                                compiles it, and executes it. The object code is saved for                         Comet 504 version               0007                                possible future execution. The source code can also be saved via                   Comet 504 version               0008                                the <SAVESOURCE> command, allowing for customization of the MTB                    Comet 504 version               0009                                code.                                                                              Comet 504 version               0010                                                                                                                   Comet 504 version               0011                                For detailed information, please see:                                              Comet 504 version               0012                                <Comet 504 Reporter Features>                                                      Comet 504 version               0013                                <Comet 504 Reporter Files>                                                         Copyright                       0001                              Copyright Notice                                                                     Copyright                       0002                              ================                                                                     Copyright                       0003                                                                                                                   Copyright                       0004                                This software package and documentation are copyrighted 1986-1996                  Copyright                       0005                                by Signature Systems, Inc. All rights reserved worldwide. No part                  Copyright                       0006                                of this publication may be reproduced, transmitted, transcribed,                   Copyright                       0007                                stored in any retrieval system, or translated into any language                    Copyright                       0008                                by any means without the express written permission of Signature                   Copyright                       0009                                Systems, Inc., 4325 Harrison Grade Road, Sebastopol, CA 95472.                     Copyright                       0010                                                                                                                   Copyright                       0011                              Disclaimer                                                                           Copyright                       0012                              ==========                                                                           Copyright                       0013                                                                                                                   Copyright                       0014                                Signature Systems, Inc. makes no warranties as to the contents of                  Copyright                       0015                                this documentation and specifically disclaims any implied                          Copyright                       0016                                warranties of merchantability or fitness for any particular                        Copyright                       0017                                purpose. Signature Systems further reserves the right to make                      Copyright                       0018                                changes to the specifications of the program and contents of the                   Copyright                       0019                                documentation without obligation to notify any person or                           Copyright                       0020                                organization of such changes.                                                      Copyright                       0021                                                                                                                   Copyright                       0022                              License Agreement                                                                    Copyright                       0023                              =================                                                                    Copyright                       0024                                                                                                                   Copyright                       0025                                The software described in this documentation is furnished under a                  Copyright                       0026                                license agreement and may be used or copied only in accordance                     Copyright                       0027                                with the terms of the agreement. Failure to sign this agreement                    Copyright                       0028                                and still use the software is illegal.                                             Copyright                       0029                                                                                                                   Copyright                       0030                              Trademark Credits                                                                    Copyright                       0031                              =================                                                                    Copyright                       0032                                                                                                                   Copyright                       0033                                Trademarks used in this documentation belong to their respective                   Copyright                       0034                                owners.                                                                            Copyright                       0035                                                                                                                   Copyright                       0036                              Publication Information                                                              Copyright                       0037                              =======================                                                              Copyright                       0038                                                                                                                   Copyright                       0039                                First edition October 1996.                                                        DEFINE                          0001                              Syntax:                                                                              DEFINE                          0002                                                                                                                   DEFINE                          0003                                DEFINE field-name=expression;length[.precision][;title]                            DEFINE                          0004                                                                                                                   DEFINE                          0005                              Discussion:                                                                          DEFINE                          0006                                                                                                                   DEFINE                          0007                                DEFINE allows you to set up a new field name for The Reporter                      DEFINE                          0008                                that doesn't already exist and assign it to a numeric or string                    DEFINE                          0009                                expression based on the fields available to you in The Reporter.                   DEFINE                          0010                                The field name can be up to 15 characters long and must be                         DEFINE                          0011                                described by the expression that follows the equal sign. The name                  DEFINE                          0012                                can contain periods, letters or numbers, but it cannot contain                     DEFINE                          0013                                any other characters.                                                              DEFINE                          0014                                                                                                                   DEFINE                          0015                                You must define fields for the report before you use the field                     DEFINE                          0016                                names with the <BREAK>, <PRINT>, <SELECTING>, or <TOTAL>                           DEFINE                          0017                                commands.                                                                          DEFINE                          0018                                                                                                                   DEFINE                          0019                                The expression can be constants, fields, operators, or functions                   DEFINE                          0020                                that work alone or are combined to yield a string or numeric                       DEFINE                          0021                                value. All MTB operators and functions are supported. Hex                          DEFINE                          0022                                constants are also supported.                                                      DEFINE                          0023                                                                                                                   DEFINE                          0024                                The length.precision parameter gives the field's length in                         DEFINE                          0025                                characters (or digits) and the decimal place precision. The                        DEFINE                          0026                                number to the left of the period represents the total length of                    DEFINE                          0027                                the field, and the number to the right of the period represents                    DEFINE                          0028                                the number of decimal places included in the number. Do not                        DEFINE                          0029                                specify a precision if the field represents a string.                              DEFINE                          0030                                                                                                                   DEFINE                          0031                                You can specify a title to print above a new column you are                        DEFINE                          0032                                defining. If you do not specify a title, the field-name will be                    DEFINE                          0033                                printed above the column.                                                          DEFINE                          0034                                                                                                                   DEFINE                          0035                                Place the DEFINE command either before or after the <REPORT>                       DEFINE                          0036                                command.                                                                           DEFINE                          0037                                                                                                                   DEFINE                          0038                              Example:                                                                             DEFINE                          0039                                                                                                                   DEFINE                          0040                                100   <INPUT> CUSTOMER                                                             DEFINE                          0041                                200   <TITLE> PAST.DUE.ACCOUNTS                                                    DEFINE                          0042                                300   DEFINE PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2;PAST DUE                       DEFINE                          0043                                400   <SELECTING> IF PAST.DUE GT 0                                                 DEFINE                          0044                                500   <SORT> ON STATE;CUST.NAME                                                    DEFINE                          0045                                600   <REPORT>                                                                     DEFINE                          0046                                700   <USING> CUST.TO.HIST                                                         DEFINE                          0047                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    DEFINE                          0048                                900   <BREAK> ON STATE                                                             DEFINE                          0049                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                DEFINE                          0050                                1100  <END>                                                                        DEFINE                          0051                                                                                                                   DEFINE                          0052                                In this example, the DEFINE command on line 300 creates a new                      DEFINE                          0053                                field named PAST.DUE, which is the sum of two existing fields                      DEFINE                          0054                                (AR.OVER.60 and AR.OVER.90). The field length/precision is 8.2,                    DEFINE                          0055                                and the field title is PAST DUE.                                                   DICTIONARY                      0001                              Syntax:                                                                              DICTIONARY                      0002                                                                                                                   DICTIONARY                      0003                                DICTIONARY directory-name                                                          DICTIONARY                      0004                                                                                                                   DICTIONARY                      0005                              Discussion:                                                                          DICTIONARY                      0006                                                                                                                   DICTIONARY                      0007                                The DICTIONARY command gives the three-character directory name                    DICTIONARY                      0008                                where the data dictionary (#FILES) is located. You may want to                     DICTIONARY                      0009                                included the command in your report if you work with more than                     DICTIONARY                      0010                                one data dictionary.                                                               DICTIONARY                      0011                                                                                                                   DICTIONARY                      0012                              Example:                                                                             DICTIONARY                      0013                                                                                                                   DICTIONARY                      0014                                100   DICTIONARY DS2                                                               DICTIONARY                      0015                                200   <INPUT> CUSTOMER                                                             DICTIONARY                      0016                                300   <REPORT>                                                                     DICTIONARY                      0017                                400   ...                                                                          END                             0001                              Syntax:                                                                              END                             0002                                                                                                                   END                             0003                                END                                                                                END                             0004                                                                                                                   END                             0005                              Discussion:                                                                          END                             0006                                                                                                                   END                             0007                                You can set up one report file that contains specifications for a                  END                             0008                                number of separate reports. Each report in one report file must                    END                             0009                                end with either the END command or the <RUN> command. END                          END                             0010                                specifies the end of one report specification.                                     END                             0011                                                                                                                   END                             0012                                Placing multiple reports in one specification does not accomplish                  END                             0013                                report changing. Instead, it is only a convenience to allow many                   END                             0014                                similar reports to be stored in one file, and called up by                         END                             0015                                running The Reporter with the "filespec" name, the directory, and                  END                             0016                                the starting line number of the desired report in the spec file.                   END                             0017                                The report would then run, and the END statement would terminate                   END                             0018                                the report process. In the example below, to run the second                        END                             0019                                report, you could type in the command:                                             END                             0020                                                                                                                   END                             0021                                          RUN QREPORTS,UTR,"SAMPLE,DSK,    700"                                    END                             0022                                                                                                                   END                             0023                                and the report would end with the next END or RUN statement in                     END                             0024                                the spec file.                                                                     END                             0025                                                                                                                   END                             0026                                The END command must be the last command for each report in a                      END                             0027                                multiple-report file.                                                              END                             0028                                                                                                                   END                             0029                              Example:                                                                             END                             0030                                                                                                                   END                             0031                                100   <INPUT> ...                                                                  END                             0032                                200   <SELECTING> ...                                                              END                             0033                                300   <SORT> ...                                                                   END                             0034                                400   <REPORT>                                                                     END                             0035                                500   <PRINT> ...                                                                  END                             0036                                600   END                                                                          END                             0037                                700   <INPUT> ...                                                                  END                             0038                                800   ...                                                                          ERASE                           0001                              Syntax:                                                                              ERASE                           0002                                                                                                                   ERASE                           0003                                ERASE file-name[,directory-name]                                                   ERASE                           0004                                                                                                                   ERASE                           0005                              Discussion:                                                                          ERASE                           0006                                                                                                                   ERASE                           0007                                The ERASE command erases (deletes) temporary files you created                     ERASE                           0008                                using a <PRINTER> or <LOG> command. You enter the actual                           ERASE                           0009                                file-name of the file to erase and an optional three-character                     ERASE                           0010                                directory-name for the file. If you do not specify a directory,                    ERASE                           0011                                The Reporter searches all the accessed directories in accessed                     ERASE                           0012                                order and erases the first file it finds with the file-name you                    ERASE                           0013                                specified.                                                                         ERASE                           0014                                                                                                                   ERASE                           0015                                If you do not use the ERASE command and you use the file with                      ERASE                           0016                                another PRINTER or LOG command, the report or log will be                          ERASE                           0017                                appended to the existing file.                                                     ERASE                           0018                                                                                                                   ERASE                           0019                                Place the ERASE statement either before or after the <REPORT>                      ERASE                           0020                                command in your report file. Place it before any PRINTER or LOG                    ERASE                           0021                                command and after the <BREAK>, <PRINT>, and <TOTAL> commands.                      ERASE                           0022                                                                                                                   ERASE                           0023                                CAUTION: The Reporter does not check what kind of file is being                    ERASE                           0024                                erased.                                                                            HOME                            0001 The Reporter Command LanguageThe following commands are available in The Reporter:                                HOME                            0002 The Reporter Command Language                                                                                     HOME                            0003 The Reporter Command Language<!>                  <LOG>                 <SKIPPING>                                HOME                            0004 The Reporter Command Language<BREAK>              <MARGIN>              <SORT>                                    HOME                            0005 The Reporter Command Language<DEFINE>             <NOHEADINGS>          <SPACES>                                  HOME                            0006 The Reporter Command Language<DICTIONARY>         <PRINT>               <TITLE>                                   HOME                            0007 The Reporter Command Language<END>                <PRINTER>             <TOTAL>                                   HOME                            0008 The Reporter Command Language<ERASE>              <PRIORITY>            <USING>                                   HOME                            0009 The Reporter Command Language<INDENT>             <REPORT>              <WORKDIR>                                 HOME                            0010 The Reporter Command Language<INPUT>              <RUN>                 <WORKDISC>                                HOME                            0011 The Reporter Command Language<KEYRANGE>           <SAVESOURCE>          <WORKDISK>                                HOME                            0012 The Reporter Command Language<LINES>              <SELECTING>                                                     HOME                            0013 The Reporter Command Language                                                                                     HOME                            0014 The Reporter Command LanguageInformation about the <Comet 504 version> of The Reporter.                           INDENT                          0001                              Syntax:                                                                              INDENT                          0002                                                                                                                   INDENT                          0003                                INDENT number-of-spaces                                                            INDENT                          0004                                                                                                                   INDENT                          0005                              Discussion:                                                                          INDENT                          0006                                                                                                                   INDENT                          0007                                The INDENT command indents the printed lines or the report from                    INDENT                          0008                                the left edge of the page if the <MARGIN> command has not been                     INDENT                          0009                                specified, or from the left margin if it has been specified.                       INDENT                          0010                                                                                                                   INDENT                          0011                                Follow the INDENT command with the number of spaces from the                       INDENT                          0012                                left-hand margin where you wish to have the report data begin                      INDENT                          0013                                printing.                                                                          INDENT                          0014                                                                                                                   INDENT                          0015                                The INDENT command may be used globally or locally, as follows:                    INDENT                          0016                                                                                                                   INDENT                          0017                                a. Globally                                                                        INDENT                          0018                                                                                                                   INDENT                          0019                                   If you use the INDENT command before the <REPORT> command, all                  INDENT                          0020                                   of the subsequent secondary print lines (which result from                      INDENT                          0021                                   <USING> statements) will be indented.                                           INDENT                          0022                                                                                                                   INDENT                          0023                                   For example:                                                                    INDENT                          0024                                                                                                                   INDENT                          0025                                   INDENT 6        ! INDENT command used in global section                         INDENT                          0026                                   REPORT                                                                          INDENT                          0027                                   .                                                                               INDENT                          0028                                   PRINT ...                                                                       INDENT                          0029                                   USING ...                                                                       INDENT                          0030                                   PRINT ...       ! this line will be indented 6 spaces                           INDENT                          0031                                   USING ...                                                                       INDENT                          0032                                   PRINT ...       ! this line will also be indented 6 spaces                      INDENT                          0033                                                                                                                   INDENT                          0034                                b. Locally                                                                         INDENT                          0035                                                                                                                   INDENT                          0036                                   If you use the INDENT command after the REPORT command, the                     INDENT                          0037                                   indentation applies only to the next secondary print line.                      INDENT                          0038                                                                                                                   INDENT                          0039                                   For example:                                                                    INDENT                          0040                                                                                                                   INDENT                          0041                                   REPORT                                                                          INDENT                          0042                                   .                                                                               INDENT                          0043                                   PRINT ...                                                                       INDENT                          0044                                   USING ...                                                                       INDENT                          0045                                   PRINT ...                                                                       INDENT                          0046                                   INDENT 6        ! INDENT command used in local section                          INDENT                          0047                                   USING ...                                                                       INDENT                          0048                                   PRINT ...       ! this line will be indented 6 spaces                           INPUT                           0001                              Syntax:                                                                              INPUT                           0002                                                                                                                   INPUT                           0003                                INPUT dictionary-file-name                                                         INPUT                           0004                                      [(alternate-actual-file-name{,directory-name})]                              INPUT                           0005                                                                                                                   INPUT                           0006                              Discussion:                                                                          INPUT                           0007                                                                                                                   INPUT                           0008                                INPUT specifies the name of the primary file for your report.                      INPUT                           0009                                Once the primary file is declared with the INPUT command, you can                  INPUT                           0010                                use all fields from that file with the <BREAK>, <DEFINE>,                          INPUT                           0011                                <PRINT>, <SELECTING>, <SORT>, and <TOTAL> commands.                                INPUT                           0012                                                                                                                   INPUT                           0013                                Note: Each report may have only one primary file. Other files                      INPUT                           0014                                used in preparing the report are considered "secondary" files,                     INPUT                           0015                                and must be linked to the primary file with a <USING> command.                     INPUT                           0016                                                                                                                   INPUT                           0017                                Place the INPUT command before the <REPORT> command and after any                  INPUT                           0018                                <LOG>, <PRINTER>, or <DICTIONARY> commands.                                        INPUT                           0019                                                                                                                   INPUT                           0020                                The alternate-actual-file-name and directory-name parameters are                   INPUT                           0021                                optional, and are used to specify an alternate input file for the                  INPUT                           0022                                report. For example, the data dictionary (#FILES) may contain a                    INPUT                           0023                                description for a file named CUSTOMER whose actual file name is                    INPUT                           0024                                C1A on directory DSK. For the purposes of a specific report, an                    INPUT                           0025                                alternate file name and directory name can be specified, as                        INPUT                           0026                                follows:                                                                           INPUT                           0027                                                                                                                   INPUT                           0028                                   INPUT CUSTOMER(TEMPFILE,ABC)                                                    INPUT                           0029                                                                                                                   INPUT                           0030                                In this case, the data dictionary field descriptions for the                       INPUT                           0031                                CUSTOMER file will be used, but the file named TEMPFILE on                         INPUT                           0032                                directory ABC will be used as the actual input file for the                        INPUT                           0033                                report.                                                                            INPUT                           0034                                                                                                                   INPUT                           0035                              Example 1:                                                                           INPUT                           0036                                                                                                                   INPUT                           0037                                100   INPUT CUSTOMER                                                               INPUT                           0038                                200   <TITLE> PAST.DUE.ACCOUNTS                                                    INPUT                           0039                                300   <DEFINE> PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2;PAST DUE                     INPUT                           0040                                400   <SELECTING> IF PAST.DUE GT 0                                                 INPUT                           0041                                500   <SORT> ON STATE;CUST.NAME                                                    INPUT                           0042                                600   <REPORT>                                                                     INPUT                           0043                                700   <USING> CUST.TO.HIST                                                         INPUT                           0044                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    INPUT                           0045                                900   <BREAK> ON STATE                                                             INPUT                           0046                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                INPUT                           0047                                1100  <END>                                                                        INPUT                           0048                                                                                                                   INPUT                           0049                              Example 2:                                                                           INPUT                           0050                                                                                                                   INPUT                           0051                                100   INPUT CUSTOMER(TEMPFILE,ABC)                                                 INPUT                           0052                                200   <TITLE> PAST.DUE.ACCOUNTS                                                    INPUT                           0053                                300   <DEFINE> PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2;PAST DUE                     INPUT                           0054                                400   <SELECTING> IF PAST.DUE GT 0                                                 INPUT                           0055                                500   <SORT> ON STATE;CUST.NAME                                                    INPUT                           0056                                600   <REPORT>                                                                     INPUT                           0057                                700   <USING> CUST.TO.HIST                                                         INPUT                           0058                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    INPUT                           0059                                900   <BREAK> ON STATE                                                             INPUT                           0060                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                INPUT                           0061                                1100  <END>                                                                        KEYRANGE                        0001                              Syntax:                                                                              KEYRANGE                        0002                                                                                                                   KEYRANGE                        0003                                KEYRANGE "start-key" TO "stop-key"                                                 KEYRANGE                        0004                                                                                                                   KEYRANGE                        0005                              Discussion:                                                                          KEYRANGE                        0006                                                                                                                   KEYRANGE                        0007                                KEYRANGE allows you to specify a range of records that you want                    KEYRANGE                        0008                                The Reporter to consider for this report. By specifying a                          KEYRANGE                        0009                                keyrange, you minimize report processing time by looking at a                      KEYRANGE                        0010                                selected range of records rather than the entire file.                             KEYRANGE                        0011                                                                                                                   KEYRANGE                        0012                                If KEYRANGE is placed before the <SORT> command, only those                        KEYRANGE                        0013                                records between start-key and stop-key will be sorted,                             KEYRANGE                        0014                                dramatically cutting down the sort time for large files. If                        KEYRANGE                        0015                                KEYRANGE is placed after the SORT but before the <REPORT>, the                     KEYRANGE                        0016                                KEYRANGE will be ignored. KEYRANGE may be used without a SORT and                  KEYRANGE                        0017                                only those records between start-key and stop-key will be                          KEYRANGE                        0018                                displayed in the report.                                                           LINES                           0001                              Syntax:                                                                              LINES                           0002                                                                                                                   LINES                           0003                                LINES number-of-lines-per-page                                                     LINES                           0004                                                                                                                   LINES                           0005                              Discussion:                                                                          LINES                           0006                                                                                                                   LINES                           0007                                LINES specifies the maximum number of lines to print on each page                  LINES                           0008                                of the report.                                                                     LINES                           0009                                                                                                                   LINES                           0010                                If you do not include a LINES command, The Reporter uses default                   LINES                           0011                                settings of 66 lines for printers and 23 lines for video screens                   LINES                           0012                                (terminals).                                                                       LINES                           0013                                                                                                                   LINES                           0014                                The LINES command suppresses header and footer information,                        LINES                           0015                                including titles, date, filename, page numbers, the report name,                   LINES                           0016                                and memory requirements.                                                           LINES                           0017                                                                                                                   LINES                           0018                                Note: Following the LINES command with zero (0) suppresses form                    LINES                           0019                                feeds in the report, including the form feed before the report                     LINES                           0020                                begins to print. LINES 0 also disables the NEWPAGE command and                     LINES                           0021                                options.                                                                           LINES                           0022                                                                                                                   LINES                           0023                                Place the LINES command before the <REPORT> command.                               LOG                             0001                              Syntax:                                                                              LOG                             0002                                                                                                                   LOG                             0003                                LOG device-name                                                                    LOG                             0004                                LOG file-name[,directory-name]                                                     LOG                             0005                                LOG OFF                                                                            LOG                             0006                                LOG TERMINAL                                                                       LOG                             0007                                                                                                                   LOG                             0008                              Discussion:                                                                          LOG                             0009                                                                                                                   LOG                             0010                                The LOG command specifies the file or device where a log of the                    LOG                             0011                                reporting process is recorded. The log begins to record                            LOG                             0012                                information from the point where the LOG command is included in                    LOG                             0013                                the specification file and continues to record information                         LOG                             0014                                through the end of the report, or until it encounters a LOG OFF                    LOG                             0015                                command.                                                                           LOG                             0016                                                                                                                   LOG                             0017                                To log information to a device, follow the LOG with the                            LOG                             0018                                three-character device name (e.g., LP1, T03) where the log should                  LOG                             0019                                display.                                                                           LOG                             0020                                                                                                                   LOG                             0021                                To log information to a file, use LOG followed by the file-name                    LOG                             0022                                and directory-name.                                                                LOG                             0023                                                                                                                   LOG                             0024                                To log information to your current terminal, enter LOG TERMINAL.                   LOG                             0025                                                                                                                   LOG                             0026                                To turn the log function off, enter LOG OFF.                                       LOG                             0027                                                                                                                   LOG                             0028                                Place the LOG command before the <REPORT> command.                                 MARGIN                          0001                              Syntax:                                                                              MARGIN                          0002                                                                                                                   MARGIN                          0003                                MARGIN left-margin[,right-margin]                                                  MARGIN                          0004                                                                                                                   MARGIN                          0005                              Discussion:                                                                          MARGIN                          0006                                                                                                                   MARGIN                          0007                                The MARGIN command specifies the left and right margins for a                      MARGIN                          0008                                report, or the record size for reports that are being written to                   MARGIN                          0009                                disk with the <PRINTER> command.                                                   MARGIN                          0010                                                                                                                   MARGIN                          0011                                Type the number of spaces from the printer's left margin that the                  MARGIN                          0012                                first character will print, optionally followed by the number of                   MARGIN                          0013                                spaces from the left margin that the last characters will print                    MARGIN                          0014                                at the right margin. The default left and right margins are 0 and                  MARGIN                          0015                                151, respectively.                                                                 MARGIN                          0016                                                                                                                   MARGIN                          0017                                When printing a report to a disk file (sequential), always set                     MARGIN                          0018                                the left margin at zero. Set the right margin to the record size                   MARGIN                          0019                                of the file. The maximum record size is 1024. The default record                   MARGIN                          0020                                size is 15.                                                                        NOHEADINGS                      0001                              Syntax:                                                                              NOHEADINGS                      0002                                                                                                                   NOHEADINGS                      0003                                NOHEADINGS                                                                         NOHEADINGS                      0004                                                                                                                   NOHEADINGS                      0005                              Disucssion:                                                                          NOHEADINGS                      0006                                                                                                                   NOHEADINGS                      0007                                NOHEADINGS suppresses column titles for a particular print line.                   NOHEADINGS                      0008                                It does not suppress overall format command such as date, primary                  NOHEADINGS                      0009                                file name, overall report title, and page number.                                  NOHEADINGS                      0010                                                                                                                   NOHEADINGS                      0011                                Each print line in a multiple-line report must contain its own                     NOHEADINGS                      0012                                NOHEADINGS command to suppress column titles.                                      NOHEADINGS                      0013                                                                                                                   NOHEADINGS                      0014                                The NOHEADINGS command may be used globally or locally, as                         NOHEADINGS                      0015                                follows:                                                                           NOHEADINGS                      0016                                                                                                                   NOHEADINGS                      0017                                a. Globally                                                                        NOHEADINGS                      0018                                                                                                                   NOHEADINGS                      0019                                   If you use the NOHEADINGS command before the <REPORT> command,                  NOHEADINGS                      0020                                   all of the print lines will appear without headings.                            NOHEADINGS                      0021                                                                                                                   NOHEADINGS                      0022                                   For example:                                                                    NOHEADINGS                      0023                                                                                                                   NOHEADINGS                      0024                                   NOHEADINGS            ! NOHEADINGS command in global section                    NOHEADINGS                      0025                                   REPORT                                                                          NOHEADINGS                      0026                                   .                                                                               NOHEADINGS                      0027                                   PRINT ...             ! print line with no headings                             NOHEADINGS                      0028                                   USING ...                                                                       NOHEADINGS                      0029                                   PRINT ...             ! print line with no headings                             NOHEADINGS                      0030                                   USING ...                                                                       NOHEADINGS                      0031                                   PRINT ...             ! print line with no headings                             NOHEADINGS                      0032                                                                                                                   NOHEADINGS                      0033                                b. Locally                                                                         NOHEADINGS                      0034                                                                                                                   NOHEADINGS                      0035                                   If you use the NOHEADINGS command after the REPORT command,                     NOHEADINGS                      0036                                   the indentation applies only to the next secondary print line.                  NOHEADINGS                      0037                                                                                                                   NOHEADINGS                      0038                                   For example:                                                                    NOHEADINGS                      0039                                                                                                                   NOHEADINGS                      0040                                   REPORT                                                                          NOHEADINGS                      0041                                   .                                                                               NOHEADINGS                      0042                                   PRINT ...                                                                       NOHEADINGS                      0043                                   USING ...                                                                       NOHEADINGS                      0044                                   PRINT ...                                                                       NOHEADINGS                      0045                                   NOHEADINGS            ! NOHEADINGS command in local section                     NOHEADINGS                      0046                                   USING ...                                                                       NOHEADINGS                      0047                                   PRINT ...             ! print line with no headings                             PRINT                           0001                              Syntax:                                                                              PRINT                           0002                                                                                                                   PRINT                           0003                                PRINT field-name[;field-name][;field-name]                                         PRINT                           0004                                                                                                                   PRINT                           0005                              Discussion:                                                                          PRINT                           0006                                                                                                                   PRINT                           0007                                The PRINT command specifies which fields you wish to print, as                     PRINT                           0008                                well as the order (left to right) in which fields should appear.                   PRINT                           0009                                                                                                                   PRINT                           0010                                If the data dictionary (#FILES) contains edit masks for numeric                    PRINT                           0011                                fields, they will be used on the report.                                           PRINT                           0012                                                                                                                   PRINT                           0013                                Use the PRINT command after the <REPORT> command.                                  PRINT                           0014                                                                                                                   PRINT                           0015                              Examples:                                                                            PRINT                           0016                                                                                                                   PRINT                           0017                                To print a single line report, follow the PRINT command with the                   PRINT                           0018                                names of the fields you wan to see:                                                PRINT                           0019                                                                                                                   PRINT                           0020                                          PRINT A;B;C                                                              PRINT                           0021                                                                                                                   PRINT                           0022                                To print a multiple-line report, enter multiple PRINT statements                   PRINT                           0023                                such as:                                                                           PRINT                           0024                                                                                                                   PRINT                           0025                                          PRINT A;B;C                                                              PRINT                           0026                                          PRINT D;E;F                                                              PRINT                           0027                                                                                                                   PRINT                           0028                                A common use of multiple PRINT statements is a report that prints                  PRINT                           0029                                labels from the CUSTOMER MASTER FILE.                                              PRINT                           0030                                                                                                                   PRINT                           0031                                          <LINES> 0                                                                PRINT                           0032                                          <NOHEADINGS>                                                             PRINT                           0033                                          <SKIPPING> 1                                                             PRINT                           0034                                          <INDENT> n                                                               PRINT                           0035                                          <INPUT> CUSTOMER                                                         PRINT                           0036                                          <REPORT>                                                                 PRINT                           0037                                          PRINT CUST.NAME                                                          PRINT                           0038                                          PRINT ADDRESS.1                                                          PRINT                           0039                                          PRINT CITY;STATE;ZIP.CODE                                                PRINTER                         0001                              Syntax:                                                                              PRINTER                         0002                                                                                                                   PRINTER                         0003                                PRINTER device-name                                                                PRINTER                         0004                                                                                                                   PRINTER                         0005                                PRINTER file-name[.extension][,directory-name][,S|D|H]                             PRINTER                         0006                                                                                                                   PRINTER                         0007                                        S = standard data format (fixed length fields,                             PRINTER                         0008                                            fixed length record); also called "SDF"                                PRINTER                         0009                                                                                                                   PRINTER                         0010                                        D = fields are delimited with a comma; string fields                       PRINTER                         0011                                            are enclosed in double quotes                                          PRINTER                         0012                                                                                                                   PRINTER                         0013                                        H = same as delimited (D), but includes a header                           PRINTER                         0014                                            record with field names                                                PRINTER                         0015                                                                                                                   PRINTER                         0016                                PRINTER TERMINAL[,TEL]                                                             PRINTER                         0017                                                                                                                   PRINTER                         0018                                        TEL = output on TeleVideo terminal or other                                PRINTER                         0019                                              132-column workstation                                               PRINTER                         0020                                                                                                                   PRINTER                         0021                              Discussion:                                                                          PRINTER                         0022                                                                                                                   PRINTER                         0023                                The PRINTER command allows you to direct your report output to a                   PRINTER                         0024                                printer for hard copy, to the terminal (screen), or to a disk                      PRINTER                         0025                                file.                                                                              PRINTER                         0026                                                                                                                   PRINTER                         0027                                When you specify a device with the PRINTER command, type the                       PRINTER                         0028                                three-character name of the printer (LP2, for example), spooler,                   PRINTER                         0029                                or other output device.                                                            PRINTER                         0030                                                                                                                   PRINTER                         0031                                When you specify a disk file, type the name of the file you wish                   PRINTER                         0032                                to store the report as, and optionally, a three-character                          PRINTER                         0033                                directory name. If you do not specify a directory, The Reporter                    PRINTER                         0034                                uses the default directory.                                                        PRINTER                         0035                                                                                                                   PRINTER                         0036                                   Note: The Reporter automatically includes a leading minus sign                  PRINTER                         0037                                   on negatively valued numeric fields when writing to a SDF or                    PRINTER                         0038                                   delimited output file.                                                          PRINTER                         0039                                                                                                                   PRINTER                         0040                                Specify PRINTER terminal,TEL for 132-character screen output on                    PRINTER                         0041                                TeleVideo terminals and compatible workstations.                                   PRINTER                         0042                                                                                                                   PRINTER                         0043                                Place the PRINTER command before the <REPORT> command and after                    PRINTER                         0044                                any <ERASE>, <MARGIN>, or <LOG> commands.                                          PRIORITY                        0001                              Syntax:                                                                              PRIORITY                        0002                                                                                                                   PRIORITY                        0003                                PRIORITY scheduler-priority-value                                                  PRIORITY                        0004                                                                                                                   PRIORITY                        0005                              Discussion:                                                                          PRIORITY                        0006                                                                                                                   PRIORITY                        0007                                The PRIORITY command allows you to assign system resources to The                  PRIORITY                        0008                                Reporter for faster or slower execution of your report. The                        PRIORITY                        0009                                scheduler-priority-value must be a number from 0 (fastest) to 255                  PRIORITY                        0010                                (slowest).                                                                         PRIORITY                        0011                                                                                                                   PRIORITY                        0012                                Place PRIORITY anywhere in the report specification. You may                       PRIORITY                        0013                                enter multiple PRIORITY statement within a specification to                        PRIORITY                        0014                                assign a lower priority to some functions such as <SORT>, and                      PRIORITY                        0015                                higher to others such as <PRINT>.                                                  REPORT                          0001                              Syntax:                                                                              REPORT                          0002                                                                                                                   REPORT                          0003                                REPORT                                                                             REPORT                          0004                                                                                                                   REPORT                          0005                              Discussion:                                                                          REPORT                          0006                                                                                                                   REPORT                          0007                                Use the REPORT command to separate format commands from data                       REPORT                          0008                                commands. Always place the REPORT command before the first data                    REPORT                          0009                                handling command (<BREAK>, <PRINT>, <TOTAL>, etc.).                                REPORT                          0010                                                                                                                   REPORT                          0011                                The REPORT command can also designate secondary data commands in                   REPORT                          0012                                a report specification file. For example, you may begin a report                   REPORT                          0013                                specification with an <INPUT> and <SORT> followed by a REPORT and                  REPORT                          0014                                your data commands for one report. You may then follow that                        REPORT                          0015                                report with anther REPORT command and data commands, which would                   REPORT                          0016                                product another report from the original format commands (INPUT                    REPORT                          0017                                and SORT), as shown in the following example:                                      REPORT                          0018                                                                                                                   REPORT                          0019                                          <INPUT> CUSTOMER                                                         REPORT                          0020                                          <SORT> ON CUST.NAME                                                      REPORT                          0021                                          REPORT                                                                   REPORT                          0022                                          <PRINT> CUST.NAME;PHONE                                                  REPORT                          0023                                          REPORT                                                                   REPORT                          0024                                          <PRINT> CUST.NAME;CREDIT.LIMIT                                           RUN                             0001                              Syntax:                                                                              RUN                             0002                                                                                                                   RUN                             0003                                RUN program[,directory-name][,"message"]                                           RUN                             0004                                                                                                                   RUN                             0005                              Discussion:                                                                          RUN                             0006                                                                                                                   RUN                             0007                                The RUN command executes a program. Follow it with the name of                     RUN                             0008                                the program you wish to run, such as:                                              RUN                             0009                                                                                                                   RUN                             0010                                          RUN Z,DSK                                                                RUN                             0011                                          RUN QREPORTS,UTR,"ARREPORT,DSK,5000"                                     RUN                             0012                                                                                                                   RUN                             0013                                As an option, you can also type the three-character name of the                    RUN                             0014                                directory where the program is located. You may also send a                        RUN                             0015                                message, such as a file-name or command, to the program. You must                  RUN                             0016                                enclose the message in double quotes. The message can be any                       RUN                             0017                                information the program is expecting, including a command file                     RUN                             0018                                name, directory, and beginning line number as shown in the second                  RUN                             0019                                example above. This example would run The Reporter asking to run                   RUN                             0020                                a report named ARRPORT, located in directory DSK, and starting at                  RUN                             0021                                line number 5000.                                                                  RUN                             0022                                                                                                                   RUN                             0023                                The RUN command must be the last command in the report or the                      RUN                             0024                                last command in a report contained in a multiple-report                            RUN                             0025                                specification.                                                                     SAVESOURCE                      0001                              Syntax:                                                                              SAVESOURCE                      0002                                                                                                                   SAVESOURCE                      0003                                SAVESOURCE                                                                         SAVESOURCE                      0004                                                                                                                   SAVESOURCE                      0005                              Discussion:                                                                          SAVESOURCE                      0006                                                                                                                   SAVESOURCE                      0007                                The SAVESOURCE command instructs The Reporter to save the MTB                      SAVESOURCE                      0008                                source code that is generated as part of the report creation                       SAVESOURCE                      0009                                process. If you do not include this command in the report                          SAVESOURCE                      0010                                specification, The Reporter will erase the MTB source code when                    SAVESOURCE                      0011                                the report is done.                                                                SELECTING                       0001                              Syntax:                                                                              SELECTING                       0002                                                                                                                   SELECTING                       0003                                SELECTING [IF] field-name relational-operator value                                SELECTING                       0004                                          [AND field-name relational-operator value]                               SELECTING                       0005                                                                                                                   SELECTING                       0006                              Where:                                                                               SELECTING                       0007                                                                                                                   SELECTING                       0008                                Relational-operators:                                                              SELECTING                       0009                                                                                                                   SELECTING                       0010                                   EQ  = equal to                                                                  SELECTING                       0011                                   NE  = not equal to                                                              SELECTING                       0012                                   LT  = less than                                                                 SELECTING                       0013                                   LE  = less than or equal to                                                     SELECTING                       0014                                   GT  = greater than                                                              SELECTING                       0015                                   GE  = greater than or equal to                                                  SELECTING                       0016                                                                                                                   SELECTING                       0017                                Logical operators:                                                                 SELECTING                       0018                                                                                                                   SELECTING                       0019                                   AND = as shown above                                                            SELECTING                       0020                                   OR  = implied with multiple SELECTING statements                                SELECTING                       0021                                                                                                                   SELECTING                       0022                              Discussion:                                                                          SELECTING                       0023                                                                                                                   SELECTING                       0024                                The SELECTING command allows you to specify the records from you                   SELECTING                       0025                                primary or secondary file(s) that contain the data you wish to                     SELECTING                       0026                                use for your report. SELECTING tells The Reporter to restrict the                  SELECTING                       0027                                data to just those records that meet the criteria you specify.                     SELECTING                       0028                                The field-name parameter is the name of the field you wish to                      SELECTING                       0029                                quantify; the relational-operator is one of the comparative                        SELECTING                       0030                                operators listed above; and the value is either a constant on                      SELECTING                       0031                                another field within the file.                                                     SELECTING                       0032                                                                                                                   SELECTING                       0033                                A simple example of a SELECTING statement is:                                      SELECTING                       0034                                                                                                                   SELECTING                       0035                                          SELECTING IF PREVIOUS.YTD GT 1000.00                                     SELECTING                       0036                                                                                                                   SELECTING                       0037                                To qualify the data on more than one set of criteria, the logical                  SELECTING                       0038                                operations "AND" and "OR" can be used. An OR condition says if                     SELECTING                       0039                                one or the other selecting conditions is true, print the data. An                  SELECTING                       0040                                OR condition is implied by separate SELECTING statement. For                       SELECTING                       0041                                example:                                                                           SELECTING                       0042                                                                                                                   SELECTING                       0043                                          SELECTING IF ZIP.CODE EQ 90010                                           SELECTING                       0044                                          SELECTING IF ZIP.CODE EQ 90060                                           SELECTING                       0045                                          SELECTING IF ZIP.CODE EQ 90090                                           SELECTING                       0046                                                                                                                   SELECTING                       0047                                This series of SELECTING statements would print any customer with                  SELECTING                       0048                                a ZIP code of 90010, 90060, or 90090.                                              SELECTING                       0049                                                                                                                   SELECTING                       0050                                To set up AND conditions, the word AND must be used between the                    SELECTING                       0051                                sets of conditions. For example:                                                   SELECTING                       0052                                                                                                                   SELECTING                       0053                                          SELECTING IF AR.OVER.90 NE 0 AND STATE EQ "CA"                           SELECTING                       0054                                                                                                                   SELECTING                       0055                                This statement would select any customer who had invoices due                      SELECTING                       0056                                over 90 days and was in the state of California.                                   SELECTING                       0057                                                                                                                   SELECTING                       0058                                If you do not include a SELECTING command in the report, all the                   SELECTING                       0059                                records in the file and used for the report.                                       SELECTING                       0060                                                                                                                   SELECTING                       0061                                Place the SELECTING command before or after the <REPORT> command.                  SELECTING                       0062                                If used in conjunction with a <SORT> command, it must appear                       SELECTING                       0063                                before the SORT command.                                                           SELECTING                       0064                                                                                                                   SELECTING                       0065                                Fields in the SELECTING statement may be numeric or string type                    SELECTING                       0066                                fields. When using a string compare, any constant value must be                    SELECTING                       0067                                enclosed in quotes. Another important consideration in                             SELECTING                       0068                                comparisons on string fields is that when an equal comparison is                   SELECTING                       0069                                required, you must be aware of the actual size of the string                       SELECTING                       0070                                field and possibly pad your string comparison with blanks.                         SELECTING                       0071                                                                                                                   SELECTING                       0072                                For example, many applications use a three-character state code,                   SELECTING                       0073                                using the 3rd position as a special indicator to the application                   SELECTING                       0074                                program. If you want to find all the customers in California, for                  SELECTING                       0075                                example, you would use the following SELECTING statements:                         SELECTING                       0076                                                                                                                   SELECTING                       0077                                          SELECTING IF STATE EQ "CA "                                              SELECTING                       0078                                          SELECTING IF STATE EQ "CA+"                                              SELECTING                       0079                                                                                                                   SELECTING                       0080                                Using both SELECTING statements constitutes an "OR" condition, so                  SELECTING                       0081                                all customers with "CA " or "CA+" in the STATE field would be                      SELECTING                       0082                                reported. If you merely requested                                                  SELECTING                       0083                                                                                                                   SELECTING                       0084                                          SELECTING IF STATE EQ "CA"   (no trailing blank)                         SELECTING                       0085                                                                                                                   SELECTING                       0086                                there would be no records selected for the report.                                 SKIPPING                        0001                              Syntax:                                                                              SKIPPING                        0002                                                                                                                   SKIPPING                        0003                                SKIPPING number-of-lines                                                           SKIPPING                        0004                                                                                                                   SKIPPING                        0005                              Discussion:                                                                          SKIPPING                        0006                                                                                                                   SKIPPING                        0007                                The SKIPPING command allows you to double-, triple, or                             SKIPPING                        0008                                quadruple-space your reports. Place the SKIPPING command before                    SKIPPING                        0009                                the <REPORT> command that separates format and utility commands                    SKIPPING                        0010                                from commands that handle specific file data.                                      SKIPPING                        0011                                                                                                                   SKIPPING                        0012                                Follow the SKIPPING command with the number of blank lines you                     SKIPPING                        0013                                wish to have between the printed lines of the report, as follows:                  SKIPPING                        0014                                                                                                                   SKIPPING                        0015                                          SKIPPING 1             double spacing                                    SKIPPING                        0016                                          SKIPPING 2             triple spacing                                    SKIPPING                        0017                                          SKIPPING 3             quadruple spacing                                 SKIPPING                        0018                                                                                                                   SKIPPING                        0019                                In multiple-line prints, the SKIPPING will take effect after the                   SKIPPING                        0020                                final line of the group. The lines within a group cannot be                        SKIPPING                        0021                                double- or triple-spaced.                                                          SORT                            0001                              Syntax:                                                                              SORT                            0002                                                                                                                   SORT                            0003                                SORT [ON] field-name[,A|D]][;field-name{,A|D}]...                                  SORT                            0004                                                                                                                   SORT                            0005                              Where:                                                                               SORT                            0006                                                                                                                   SORT                            0007                                          A = ascending order (default)                                            SORT                            0008                                          D = descending order                                                     SORT                            0009                                                                                                                   SORT                            0010                              Discussion:                                                                          SORT                            0011                                                                                                                   SORT                            0012                                Place the SORT command before the first <REPORT> command that                      SORT                            0013                                separates the format and utility command from the data handling                    SORT                            0014                                commands.                                                                          SORT                            0015                                                                                                                   SORT                            0016                                Using the SORT command allows you to arrange the report data in                    SORT                            0017                                either numeric or alphabetical order in either ascending or                        SORT                            0018                                descending sequence, based on the fields you sort on.                              SORT                            0019                                                                                                                   SORT                            0020                                If you do not specify a SORT command in your report, the report                    SORT                            0021                                data is printed in the order in which it is stored in the file.                    SORT                            0022                                If you do not specify and A or D, for ascending or descending                      SORT                            0023                                order, respectively, the report sorts in ascending order. Records                  SORT                            0024                                containing blanks in the sort field(s) print at the beginning of                   SORT                            0025                                the report.                                                                        SORT                            0026                                                                                                                   SORT                            0027                                If multiple sort fields are listed, the records are sorted by the                  SORT                            0028                                first field, and if duplicate values exist for that field, by the                  SORT                            0029                                second sort field, etc.                                                            SORT                            0030                                                                                                                   SORT                            0031                                NOTE: A type 2 gateway must be configured if the SORT command is                   SORT                            0032                                used (i.e., there is no more "slow sort" option).                                  SORT                            0033                                                                                                                   SORT                            0034                              Example:                                                                             SORT                            0035                                                                                                                   SORT                            0036                                          SORT ON STATE,A;TOTAL.PAST.DUE,D                                         SPACES                          0001                              Syntax:                                                                              SPACES                          0002                                                                                                                   SPACES                          0003                                SPACES number-of-spaces-between-columns                                            SPACES                          0004                                                                                                                   SPACES                          0005                              Discussion:                                                                          SPACES                          0006                                                                                                                   SPACES                          0007                                The SPACES command sets the number of spaces between columns. If                   SPACES                          0008                                you do not specify a SPACES command, The Reporter defaults to 5                    SPACES                          0009                                spaces between each column.                                                        SPACES                          0010                                                                                                                   SPACES                          0011                                If you do not specify a SPACES command, and if the width of the                    SPACES                          0012                                print line exceeds the margins of the output device, The Reporter                  SPACES                          0013                                will reduce the number of spaces between columns in an attempt to                  SPACES                          0014                                fit all of the data on the report.                                                 SPACES                          0015                                                                                                                   SPACES                          0016                                However, if your report contains a SPACES command, The Reporter                    SPACES                          0017                                will force the number of spaces you request between fields, even                   SPACES                          0018                                if it will cause columns to go "off the edge" of the output                        SPACES                          0019                                device.                                                                            SPACES                          0020                                                                                                                   SPACES                          0021                                The SPACES command my be used globally or locally, as follows:                     SPACES                          0022                                                                                                                   SPACES                          0023                                a. Globally                                                                        SPACES                          0024                                                                                                                   SPACES                          0025                                   If you place the SPACES command before the <REPORT> command,                    SPACES                          0026                                   all of the print lines will be affected.                                        SPACES                          0027                                                                                                                   SPACES                          0028                                   For example:                                                                    SPACES                          0029                                                                                                                   SPACES                          0030                                   SPACES 8              ! SPACES command in global section                        SPACES                          0031                                   REPORT                                                                          SPACES                          0032                                   .                                                                               SPACES                          0033                                   PRINT ...             ! print line with 8 spaces between columns                SPACES                          0034                                   USING ...                                                                       SPACES                          0035                                   PRINT ...             ! print line with 8 spaces between columns                SPACES                          0036                                                                                                                   SPACES                          0037                                b. Locally                                                                         SPACES                          0038                                                                                                                   SPACES                          0039                                   If you place the SPACES command after the REPORT command, it                    SPACES                          0040                                   applies only to the following <PRINT> command.                                  SPACES                          0041                                                                                                                   SPACES                          0042                                   For example:                                                                    SPACES                          0043                                                                                                                   SPACES                          0044                                   REPORT                                                                          SPACES                          0045                                   .                                                                               SPACES                          0046                                   PRINT ...                                                                       SPACES                          0047                                   USING ...                                                                       SPACES                          0048                                   SPACES 3              ! SPACES command in local section                         SPACES                          0049                                   PRINT ...             ! print line with 3 spaces between columns                TITLE                           0001                              Syntax:                                                                              TITLE                           0002                                                                                                                   TITLE                           0003                                TITLE report-title                                                                 TITLE                           0004                                                                                                                   TITLE                           0005                              Discussion:                                                                          TITLE                           0006                                                                                                                   TITLE                           0007                                Place the TITLE of the report before the <REPORT> command. Titles                  TITLE                           0008                                that you specify with the TITLE command are centered on the                        TITLE                           0009                                printed report, exactly as you type them (caps or upper and lower                  TITLE                           0010                                case), and appear on each page of the report. You can enter a                      TITLE                           0011                                maximum of 10 titles lines of up to 132 characters each.                           TITLE                           0012                                                                                                                   TITLE                           0013                                To print a title on multiple lines, type the TITLE command at the                  TITLE                           0014                                beginning of each line. To add a blank line within the title,                      TITLE                           0015                                type the TITLE command alone where you want to locate the blank                    TITLE                           0016                                line.                                                                              TITLE                           0017                                                                                                                   TITLE                           0018                              Example:                                                                             TITLE                           0019                                                                                                                   TITLE                           0020                                100   <INPUT> CUSTOMER                                                             TITLE                           0021                                200   TITLE PAST DUE ACCOUNTS                                                      TITLE                           0022                                210   TITLE                                                                        TITLE                           0023                                220   TITLE CALIFORNIA CUSTOMERS                                                   TITLE                           0024                                300   <DEFINE> PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2                              TITLE                           0025                                400   <SELECTING> IF PAST.DUE GT 0 AND STATE EQ "CA"                               TITLE                           0026                                500   <SORT> ON STATE;CUST.NAME                                                    TITLE                           0027                                600   <REPORT>                                                                     TITLE                           0028                                700   <USING> CUST.TO.HIST                                                         TITLE                           0029                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    TITLE                           0030                                900   <BREAK> ON STATE                                                             TITLE                           0031                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                TITLE                           0032                                1100  <END>                                                                        TOTAL                           0001                              Syntax:                                                                              TOTAL                           0002                                                                                                                   TOTAL                           0003                                TOTAL field-name[,P][;field-name{,P}][;field-name{,P}]                             TOTAL                           0004                                                                                                                   TOTAL                           0005                              Where:                                                                               TOTAL                           0006                                                                                                                   TOTAL                           0007                                          P = print a message (string) on the total line                           TOTAL                           0008                                                                                                                   TOTAL                           0009                              Discussion:                                                                          TOTAL                           0010                                                                                                                   TOTAL                           0011                                Place the TOTAL command after the <REPORT> command and                             TOTAL                           0012                                immediately after the <PRINT> command containing the fields you                    TOTAL                           0013                                wish to total.                                                                     TOTAL                           0014                                                                                                                   TOTAL                           0015                                The TOTAL command allows you to produce grand total, subtotals,                    TOTAL                           0016                                and column totals. Follow the TOTAL command with the field-name                    TOTAL                           0017                                or expression you wish to total. You can also use the optional                     TOTAL                           0018                                "P" parameter to print a message or string value along with the                    TOTAL                           0019                                total in the report.                                                               TOTAL                           0020                                                                                                                   TOTAL                           0021                                You can use the <BREAK> and TOTAL commands together without a                      TOTAL                           0022                                PRINT command to produce summary reports. A summary report                         TOTAL                           0023                                provides one total line each time the data in the break field                      TOTAL                           0024                                changes.                                                                           USING                           0001                              Syntax:                                                                              USING                           0002                                                                                                                   USING                           0003                                USING link-name [(alternate-actual-file-name{,directory-name})]                    USING                           0004                                      [;link-name][;link-name]                                                     USING                           0005                                                                                                                   USING                           0006                              Discussion:                                                                          USING                           0007                                                                                                                   USING                           0008                                Place the USING command after the <REPORT> command. The USING                      USING                           0009                                command links the primary data file to secondary files so that                     USING                           0010                                you can extract additional, appropriate data from them.                            USING                           0011                                                                                                                   USING                           0012                                Follow the USING command with the name of the link(s) you wish to                  USING                           0013                                include. The Reporter must have been educated about the link in                    USING                           0014                                the data dictionary (#FILES).                                                      USING                           0015                                                                                                                   USING                           0016                                There are two types of relationships that exist between files:                     USING                           0017                                one-to-one relationships and one-to-many relationships. The type                   USING                           0018                                of relationship affects how your report will look. In a one-to-                    USING                           0019                                one relationship, there is exactly one record in the second file                   USING                           0020                                that corresponds to the primary file, and as such, the data for                    USING                           0021                                each line of the report is limited. An example of a one-to-one                     USING                           0022                                relationship would be between the customer file and the customer                   USING                           0023                                history file. For each customer record, there is one and only one                  USING                           0024                                history record.                                                                    USING                           0025                                                                                                                   USING                           0026                                In one-to-many relationships, there may be multiple records in                     USING                           0027                                the secondary file that correspond to the primary file, and thus                   USING                           0028                                the data to be reported is, in a sense, unlimited. A typical                       USING                           0029                                example of a one-to-many relationship is between the customer                      USING                           0030                                file and the open order file. For each customer, there may be                      USING                           0031                                many open order records. In such a case, you many want to arrange                  USING                           0032                                your report such that static information such as the customer                      USING                           0033                                name and address appear only once, and the variable information                    USING                           0034                                (each open order) is listed separately below. This is                              USING                           0035                                accomplished by strategically placing the non-repeating variables                  USING                           0036                                in a second print line.                                                            USING                           0037                                                                                                                   USING                           0038                                Once the USING command appears in the report, all fields from all                  USING                           0039                                linked files are available for manipulation by The Reporter.                       USING                           0040                                                                                                                   USING                           0041                                Note: The USING command indents the field data specified in the                    USING                           0042                                next PRINT command by 5 spaces. You can use the <INDENT> command                   USING                           0043                                to override the USING indentation.                                                 USING                           0044                                                                                                                   USING                           0045                                The alternate-actual-file-name and directory-name parameters are                   USING                           0046                                optional, and are used to specify an alternate link file for the                   USING                           0047                                report. For example, the data dictionary (#FILES) may contain a                    USING                           0048                                link named CUST.TO.HIST that links to a file named C1B on                          USING                           0049                                directory DSK. For the purposes of a specific report, an                           USING                           0050                                alternate link file name and directory name can be specified, as                   USING                           0051                                follows:                                                                           USING                           0052                                                                                                                   USING                           0053                                   USING CUST.TO.HIST(TEMPFILE,ABC)                                                USING                           0054                                                                                                                   USING                           0055                                In this case, the link will be made to a file named TEMPFILE on                    USING                           0056                                directory ABC.                                                                     USING                           0057                                                                                                                   USING                           0058                              Example:                                                                             USING                           0059                                                                                                                   USING                           0060                                100   <INPUT> CUSTOMER                                                             USING                           0061                                200   <TITLE> PAST DUE ACCOUNTS                                                    USING                           0062                                210   <TITLE                                                                       USING                           0063                                220   <TITLE> CALIFORNIA CUSTOMERS                                                 USING                           0064                                300   <DEFINE> PAST.DUE = AR.OVER.60 + AR.OVER.90;8.2                              USING                           0065                                400   <SELECTING> IF PAST.DUE GT 0 AND STATE EQ "CA"                               USING                           0066                                500   <SORT> ON STATE;CUST.NAME                                                    USING                           0067                                600   <REPORT>                                                                     USING                           0068                                700   USING CUST.TO.HIST                                                           USING                           0069                                800   <PRINT> CUST.NAME;CUST.NUMBER;STATE;PREVIOUS.YTD;PAST.DUE                    USING                           0070                                900   <BREAK> ON STATE                                                             USING                           0071                                1000  <TOTAL> PAST.DUE;PREVIOUS.YTD                                                USING                           0072                                1100  <END>                                                                        USING                           0073                                                                                                                   USING                           0074                                The USING statement on line 700 establishes a link between the                     USING                           0075                                primary file (CUSTOMER) and a secondary file. The link name is                     USING                           0076                                CUST.TO.HIST. The data dictionary contains the definition of the                   USING                           0077                                link, including the name of the secondary file (which in this                      USING                           0078                                case is assumed to be a "customer history" file). Once the link                    USING                           0079                                has been specified in the report, fields from the primary and                      USING                           0080                                secondary files may be used (as seen on lines 800 through 1000).                   WORKDIR                         0001                              Syntax:                                                                              WORKDIR                         0002                                                                                                                   WORKDIR                         0003                                WORKDIR directory-name                                                             WORKDIR                         0004                                WORKDISC directory-name                                                            WORKDIR                         0005                                WORKDISK directory-name                                                            WORKDIR                         0006                                                                                                                   WORKDIR                         0007                              Discussion:                                                                          WORKDIR                         0008                                                                                                                   WORKDIR                         0009                                The WORKDIR, WORKDISC, and WORKDISK commands are interchangeable.                  WORKDIR                         0010                                Place one of these before the <REPORT> and <SORT> commands.                        WORKDIR                         0011                                WORKDIR allows you to designate a directory location for                           WORKDIR                         0012                                temporary files that are created when preparing reports.                           WORKDIR                         0013                                                                                                                   WORKDIR                         0014                                If you do not specify a location for temporary work files. The                     WORKDIR                         0015                                Reporter puts work files on the directory where the data                           WORKDIR                         0016                                dictionary (#FILES) is located.                                                    WORKDIR                         0017                                                                                                                   WORKDIR                         0018                                Follow the WORKDIR command with the three-character directory                      WORKDIR                         0019                                name where you wish to located temporary work files.                               WORKDISC                        0001                              Syntax:                                                                              WORKDISC                        0002                                                                                                                   WORKDISC                        0003                                WORKDISC directory-name                                                            WORKDISC                        0004                                                                                                                   WORKDISC                        0005                              See <WORKDIR>.                                                                       WORKDISK                        0001                              Syntax:                                                                              WORKDISK                        0002                                                                                                                   WORKDISK                        0003                                WORKDISK directory-name                                                            WORKDISK                        0004                                                                                                                   WORKDISK                        0005                              See <WORKDIR>.                                                                       !                                                                 Information about the <Comet 504 version> of The Reporter.                           BREAK                                                               700   <END>                                                                        Comet 504 Reporter Features                                         <Comet 504 Reporter Files>                                                         Comet 504 Reporter Files                                               delimited output file. See the <PRINTER> statement.                             Comet 504 version                                                 See <WORKDIR>.                                                                       Copyright                                                                                                                                              DEFINE                                                              1100  <END>                                                                        DICTIONARY                                                          and the field title is PAST DUE.                                                   END                                                                 400   ...                                                                          ERASE                                                               800   ...                                                                          HOME                                 The Reporter Command Language  First edition October 1996.                                                        INDENT                                                              erased.                                                                            INPUT                                                                  PRINT ...       ! this line will be indented 6 spaces                           KEYRANGE                                                            1100  <END>                                                                        LINES                                                               displayed in the report.                                                           LOG                                                                 Place the LINES command before the <REPORT> command.                               MARGIN                                                              Place the LOG command before the <REPORT> command.                                 NOHEADINGS                                                          size is 15.                                                                        PRINT                                                                  PRINT ...             ! print line with no headings                             PRINTER                                                                       PRINT CITY;STATE;ZIP.CODE                                                PRIORITY                                                            any <ERASE>, <MARGIN>, or <LOG> commands.                                          REPORT                                                              higher to others such as <PRINT>.                                                  RUN                                                                           <PRINT> CUST.NAME;CREDIT.LIMIT                                           SAVESOURCE                                                          specification.                                                                     SELECTING                                                           the report is done.                                                                SKIPPING                                                            there would be no records selected for the report.                                 SORT                                                                double- or triple-spaced.                                                          SPACES                                                                        SORT ON STATE,A;TOTAL.PAST.DUE,D                                         TITLE                                                                  PRINT ...             ! print line with 3 spaces between columns                TOTAL                                                               1100  <END>                                                                        USING                                                               changes.                                                                           WORKDIR                                                             secondary files may be used (as seen on lines 800 through 1000).                   WORKDISC                                                            name where you wish to located temporary work files.                               WORKDISK                                                          See <WORKDIR>.                                                                       